<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>

  <?php require './confg.php'; 

  $result = mysqli_query($con,"SELECT password FROM members where username='$_COOKIE[username]'") or die(mysqli_error($con));
  $rowdata = mysqli_fetch_array($result);

  if (isset($_COOKIE['username']) && isset($_COOKIE['password'])) {
    if ($_COOKIE['password'] !=  $rowdata['password']) {    
      header('Location: login.html');
    } 
    
  } else {
    header('Location: login.html');
  }


  
?>



<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Login</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.min.css">
<link rel="stylesheet" href="bootstrap/css/abhi.css">
<style type="text/css">
body,td,th {
  font-family: Ubuntu, Tahoma, sans-serif;
  color: rgb(255,255,255);
}
body {
  background-color: #000;
}
</style>
<script src="/bootstrap/js/jquery-1.9.1.min.js"></script> <!--Remove that bootsrap from path -->
<script language='JavaScript' type='text/javascript' src='/TDE_CMS/cmsloader.js'></script>
</head>
<body style="background-image: url('<?php echo $rowdata['backbar']; ?>');background-color:rgb(22, 22, 22);">

  <div class="container" style="max-width: 1000px">

    <div class="row-fluid">
      <div class="span12">

      </div>
    </div>
    <div class="row-fluid " style="color: white">
      <div class="span12" >
        <h2 style="text-align: center;color:black"></h2>
      </div>
    </div>
    <div class="row-fluid body" style="
    background-color: rgb(252, 13, 13);
    box-shadow: 0px 0px 22px rgb(0, 0, 0);
    border-radius: 4px;
    background: url('images/home_banner_1.jpg') no-repeat right;
    background-size: 474px 308px;
    border-top-left-radius: 150px;
    border-bottom-left-radius: 150px;">
    <div style="

    background-color: rgb(100, 5, 92);
    width: 1038px;
    height: 340px;
    float: left;
    position: absolute;
    z-index: -100;
    margin-top: -85px;
    margin-left: -21px;
    border-top-left-radius: 157px;
    box-shadow: inset 0px 0px 137px rgb(16, 0, 20);
    border-bottom-left-radius: 157px;
    border-bottom-right-radius: 6px;
    border-top-right-radius: 6px;      "></div>

    <div class="span10 offset1" style="margin-bottom: 37px;">
      <form name="login" method="post" action="update.php" class="form-horizontal">
        <div class="control-group">
          <label class="control-label" for="inputEmail">New Username</label>
          <div class="controls">
            <input type="text" name="newusername" placeholder="Enter new username">
          </div>
        </div>
        <div class="control-group">
          <label class="control-label" for="inputPassword">Password</label>
          <div class="controls">
            <input type="password" name="newpassword" placeholder="enter password">
          </div>
        </div>


        <div class="control-group">
          <label class="control-label" for="inputPassword">Confirm Password</label>
          <div class="controls">
            <input type="password" name="confirmpassword" placeholder="re-enter password">
          </div>
        </div>

        <div class="control-group">
          <div class="controls">
            <button type="submit" class="btn" >Add</button>
          </div>
        </div>
      </form>

    </div>

  </div>


</div>


</body>
<script type="text/javascript" src="/bootstrap/js/bootstrap-min.js"></script>
<script type="text/javascript">
$(".collapse").collapse();
</script>
</html>


